﻿using Swimj.CommonLib.Attributes;

namespace BaseData.CommonLib.Models
{
    public class MaterialInfoResponseDto
    {
        public int Id { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        /// 
        [TableColumn(DisplayText = "物料编码")]
        public string? Code { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        /// 
        [TableColumn(DisplayText = "物料名称")]
        public string? Name { get; set; }

        /// <summary>
        /// 物料分类
        /// </summary>
        /// 
        public int MaterialType { get; set; }

        [TableColumn(DisplayText = "物料分类编码")]
        public string? CategoryCode { get; set; }

        [TableColumn(DisplayText = "物料分类名称")]
        public string? CategoryName { get; set; }

        /// <summary>
        /// 规格
        /// </summary>
        /// 
        [TableColumn(DisplayText = "规格")]
        public string? Specification { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        /// 

        public int? Unit { get; set; }

        [TableColumn(DisplayText = "单位编码")]
        public string? UnitCode { get; set; }

        [TableColumn(DisplayText = "单位名称")]
        public string? UnitName { get; set; }
    }
}